package com.wang;

public class demo1 {
    public static void main1(String[] args) {
       aboutPhone  aboutPhone = new aboutPhone();
       String name = aboutPhone.name;
       int price = aboutPhone.price;
       String color = aboutPhone.color;
        System.out.println("vivo " + aboutPhone.name);
        System.out.println("998 = " + aboutPhone.price);
        System.out.println("土豪金" + aboutPhone.color);
        aboutPhone.dophone();
        aboutPhone.text();

    }

    public static void main2(String[] args) {
        Calculator calculator = new Calculator();
        calculator.brand = "飞利浦";
        calculator.size = "100X120";

        double add = calculator.add(1.2, 2.6);
        System.out.println("和为: " + add);
        double sub = calculator.sub(3.7, 2.5);
        System.out.println("差为: " + sub);

        calculator.show();
    }

    public static void main3(String[] args) {
        Phone phone = new Phone();
        phone.brand="小米";
        phone.price=3998;
        phone.color = "黑色";
        phone.callMe();
        phone.text();
    }

    public static void main4(String[] args) {
        Second2 girl = new Second2();
        girl.name= "刘亦菲";
        girl.hight = 170.0;
        girl.weight= 98.0;
        girl.wash();
        girl.cook();
    }

    public static void main5(String[] args) {
        Manager manager = new Manager();
        Coder coder = new Coder();
        manager.name="超人强";
        manager.id = 123;
        manager.salary=150;
        manager.bonus=60;
        coder.name= "小呆呆";
        coder.id= 135;
        coder.salary= 1000000;
        manager.work();
        coder.work();


    }

    public static void main6(String[] args) {
        Cat cat = new Cat();
        cat.color = "花色";
        cat.breed = "波斯猫";
        cat.eat();
        cat.catchMouse();
        Dog dog = new Dog();
        dog.color = "黑色";
        dog.breed = "藏獒";
        dog.eat();
        dog.lookHome();
    }
}
